
def draw_game_over():
    """绘制游戏结束信息"""
    if game_over:
        # 指定字体路径，使用支持更多字符的字体
        font_path = "/path/to/supported/font.ttf"  # 替换为实际字体路径
        font = pygame.font.Font(font_path, 48)
        if winner == 1:
            text = font.render("玩家获胜！", True, RED)
        elif winner == 2:
            text = font.render("AI获胜！", True, RED)
        else:
            text = font.render("平局！", True, RED)
        
        text_rect = text.get_rect(center=(WINDOW_WIDTH//2, MARGIN//2))
        screen.blit(text, text_rect)
        
        # 提示重新开始
        font_small = pygame.font.Font(font_path, 32)
        text_restart = font_small.render("按R重新开始，按Q退出", True, BLACK)
        text_rect_restart = text_restart.get_rect(center=(WINDOW_WIDTH//2, MARGIN//2 + 40))
        screen.blit(text_restart, text_rect_restart)
